//! \file roll.cpp
//! \brief TODO: Document
// -----------------------------------------------------------------------------
//! This program is free software; you can redistribute it and/or
//! modify it under the terms of the GNU General Public License
//! as published by the Free Software Foundation; either version 2
//! of the License, or (at your option) any later version.
//!
//! This program is distributed in the hope that it will be useful,
//! but WITHOUT ANY WARRANTY; without even the implied warranty of
//! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//! GNU General Public License for more details.
//!
//! You should have received a copy of the GNU General Public License
//! along with this program; if not, write to the Free Software Foundation,
//! Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
// -----------------------------------------------------------------------------

#include <iostream>
#include "Dice.h"

using namespace std;

int main(int Argc, char* pArgv[])
{
  tROLL Result, Min, Max;

  // Validate our arguments.
  if (Argc != 2)
  {
    cout << "Invalid." << endl;
    return 1;
  }

  // Roll our dice.
  Result = mROLL(pArgv[1]);
  Min = mROLL_MIN(pArgv[1]);
  Max = mROLL_MAX(pArgv[1]);

  cout << "---------------------------" << endl;
  cout << pArgv[1] << endl;
  cout << "---------------------------" << endl;
  cout << "ROLL : " << Result << endl;
  cout << "MIN  : " << Min << endl;
  cout << "MAX  : " << Max << endl;

	return 0;
}
